<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // in class assignment. 
        $age = 15; // hard coded age to have value of 15.
        if($age > 12 && $age < 18)
        {
           // age is between the specified range so print out statement
            echo "Minor Report";
            
            
        }
        else if($age<13 && $age>2)
        {
            echo "Child Report";
        }
        else
            echo "Generic Report"; // if none of the other conditions are met it must be a generic report
        
        
        $counter = 1;// counter set to 1
        
        while($counter <= 30){ // to print out numbers 1 to 30 the counter must terminate at 30 
            echo $counter;
            $counter++;       // increment counter for next iteration of while loop
        }
        echo \n;
        // doing the above but with a for loop
        
        for($counter=1; $counter<=30;$counter++){
            echo $counter; // print out value in counter            
        }
        
        ?>
    </body>
</html>
